home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
10,000 Great Games
/
10,000 Great Games.iso
/
Product
/
66
/
data1.cab
/
Source_Files
/
Src
/
Grids.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-16
|
452b
|
17 lines
#include "stdafx.h"
int view_grid = FALSE;
void draw_grid()
{
int start = game_surface->start;
if (view_grid)
{
for (int y = start - start % LEVEL_VTICK; y < start + GAME_DY; y += LEVEL_VTICK)
dashedline(game_surface, 0, y, GAME_DX - 1, y, gray);
for (int x = GAME_DX / 2 - (GAME_DX / 2 / LEVEL_HTICK) * LEVEL_HTICK; x < GAME_DX; x += LEVEL_HTICK)
dashedline(game_surface, x, start, x, start + GAME_DY - 1, gray);
}
}